//
//  ModelOfCompanionsCommunity.m
//  FreeTravel
//
//  Created by 徐康 on 16/9/10.
//  Copyright © 2016年 KX. All rights reserved.
//

#import "ModelOfCompanionsCommunity.h"

@implementation ModelOfCompanionsCommunity
- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    NSMutableArray *arr = [NSMutableArray array];
    if ([key isEqualToString:@"data"]) {
        for (NSDictionary *dic in value) {
            ModelOfCompanionsCommunityData *model = [ModelOfCompanionsCommunityData modelWithDic:dic];
            [arr addObject:model];
        }
        self.data = arr;
    }
}
@end
